using PBMessage;
using UnityEngine;
using System.Collections;

public class SC_AbilityMove_Handler :IPBHandler
{ 
  
    public void Exec(object packet) 
    {
        SC_AbilityMove PacketData = (SC_AbilityMove)packet;
        Unit unit = UnitManager.Instance.GetUnit(PacketData.UnitID);
        AbiliMove move = unit.GetAbility<AbiliMove>((int)AbilityType.Move);
        move.ServerSynPosition(new Vector3(PacketData.PosX, PacketData.PosY, PacketData.PosZ),PacketData.IsMoveing);
    }
}
